package cn.bearspark.framework.mq.starter.properties;

import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * RocketMQ 消费者的属性类
 *
 * @author f
 */
@ConfigurationProperties(prefix = "bs.rmq.consumer")
public class RocketMQConsumerProperties {

    /**
     * nameSrv 的地址
     */
    private String nameSrv;

    /**
     * 消费者组的组名的前缀
     */
    private String groupNamePrefix;

    public String getNameSrv() {
        return nameSrv;
    }

    public void setNameSrv(String nameSrv) {
        this.nameSrv = nameSrv;
    }

    public String getGroupNamePrefix() {
        return groupNamePrefix;
    }

    public void setGroupNamePrefix(String groupNamePrefix) {
        this.groupNamePrefix = groupNamePrefix;
    }

    @Override
    public String toString() {
        return "RocketMQConsumerProperties{" +
               "nameSrv='" + nameSrv + '\'' +
               ", groupNamePrefix='" + groupNamePrefix + '\'' +
               '}';
    }
}
